Electronic device for generating image including 3d avatar reflecting face motion through 3d avatar corresponding to face and method of operating same

ABSTRACT

An electronic device is provided. The electronic device includes a camera, a display, and a processor configured to obtain a first image including one or more external objects by using the camera, display to output a three-dimensional (3D) object generated based on attributes related to a face among the one or more external objects using the display, receive a selection of at least one graphic attribute from a plurality of graphic attributes which can be applied to the 3D object, generate a 3D avatar for the face based on the at least one graphic attribute, and generate a second image including at least one object reflecting a predetermined facial expression or motion using the 3D avatar.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation application of prior application Ser.No. 17/194,837, filed on Mar. 8, 2021, which is a continuationapplication of prior application Ser. No. 16/281,561, filed on Feb. 21,2019, and is based on and claims priority under 35 U.S.C. § 119(a) of aKorean patent application number 10-2018-0022262, filed on Feb. 23,2018, in the Korean Intellectual Property Office, the disclosure ofwhich is incorporated by reference herein in its entirety.

BACKGROUND 1. Field

The disclosure relates to an electronic device for generating an imageincluding a three-dimensional (3D) avatar reflecting the motion of aface through a 3D avatar of the face and a method of operating the same.

2. Description of Related Art

An electronic device may provide various services that use an avatar.The electronic device may use a 3D avatar of a user in order to displaythe user's emotion or intent in various applications.

The electronic device may provide a function of generating an avatar ofthe user and allow the user to create his/her own avatar.

The above information is presented as background information only toassist with an understanding of the disclosure. No determination hasbeen made, and no assertion is made, as to whether any of the abovemight be applicable as prior art with regard to the disclosure.

SUMMARY

Aspects of the disclosure are to address at least the above-mentionedproblems and/or disadvantages and to provide at least the advantagesdescribed below. Accordingly, an aspect of the disclosure is to providean electronic device and a method for the same capable of providing athree-dimensional (3D) avatar based on a two-dimensional (2D) imageincluding an object corresponding to a face.

According to various embodiments, an electronic device may generate andprovide a 3D avatar of a user based on attributes related to a user'sface.

According to various embodiments, an electronic device may generate andprovide a 2D image including an object to which an avatar's facialexpression, an avatar's gesture, a background, or an animation effectare variously applied using a 3D avatar generated based on a 2D imageincluding a user.

Additional aspects will be set forth in part in the description whichfollows and, in part, will be apparent from the description, or may belearned by practice of the presented embodiments.

In accordance with an aspect of the disclosure, an electronic device isprovided. The electronic device includes a camera, a display, and aprocessor configured to obtain a first image including one or moreexternal objects by using the camera, display to output athree-dimensional (3D) object generated based on attributes related to aface among the one or more external objects using the display, generatea 3D avatar for the face based on at least one graphic attribute fromamong a plurality of graphic attributes which can be applied to the 3Dobject, and generate a second image including at least one objectreflecting a predetermined facial expression or motion using the 3Davatar.

In accordance with another aspect of the disclosure, an electronicdevice is provided. The electronic device includes a camera, and aprocessor configured to obtain a first image including one or moreexternal objects using the camera, identify a face included in the oneor more external objects, select a three-dimensional (3D) avatar amongone or more 3D avatars based on the face, generate a 3D object using the3D avatar reflecting a facial expression corresponding to the face, andgenerate a second image including the 3D object.

In accordance with another aspect of the disclosure, an electronicdevice is provided. The electronic device includes a camera, and aprocessor configured to obtain a first image including one or moreexternal objects by using the camera, determine whether a face isincluded in the one or more external objects, when the face is includedin the one or more external objects, generate a three-dimensional (3D)avatar based on attributes corresponding to the face, and when the faceis not included in the one or more external objects, block generating ofa 3D avatar.

An electronic device, according to various embodiments, can provide a 3Davatar corresponding to an external object included in a 2D imageobtained using a camera.

An electronic device, according to various embodiments, can provide a 2Dimage including an object generated using a 3D avatar reflecting afacial expression of the avatar, a gesture of the avatar, a background,or an animation effect.

An electronic device, according to various embodiments, can provide oneor more applications using a 3D avatar generated based on a 2D imageincluding a user's face.

Other aspects, advantages, and salient features of the disclosure willbecome apparent to those skilled in the art from the following detaileddescription, which, taken in conjunction with the annexed drawings,discloses various embodiments of the disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other aspects, features, and advantages of certainembodiments of the disclosure will be more apparent from the followingdescription taken in conjunction with the accompanying drawings, inwhich:

FIG. 1 is a block diagram illustrating an electronic device within anetwork environment according to various embodiments of the disclosure;

FIG. 2 is a flowchart illustrating a method of operating an electronicdevice which generates a three-dimensional (3D) avatar according tovarious embodiments of the disclosure;

FIGS. 3A, 3B, 3C, 3D, 3E, and 3F illustrate an operation in which anelectronic device generates a 3D avatar provided to a user according tovarious embodiments of the disclosure;

FIGS. 4A, 4B, and 4C illustrate a 3D graphic object generated by anelectronic device and graphic attributes which can be applied to the 3Dgraphic object according to various embodiments of the disclosure;

FIG. 5 illustrates an operation in which an electronic device generatesa 3D avatar based on a two-dimensional (2D) image according to variousembodiments of the disclosure;

FIG. 6 illustrates a 2D image including at least one object generatedusing a 3D avatar by an electronic device according to variousembodiments of the disclosure;

FIG. 7 illustrates editing a photo using an avatar character by anelectronic device according to various embodiments of the disclosure;

FIG. 8 illustrates transmitting a selected object of an avatar characterthrough a message by an electronic device according to variousembodiments of the disclosure;

FIG. 9 illustrates editing contacts to include an avatar character by anelectronic device according to various embodiments of the disclosure;

FIG. 10 illustrates a 3D avatar generated based on a 2D image includingan animal head by an electronic device according to various embodimentsof the disclosure;

FIG. 11 illustrates a 3D avatar generated based on a 2D image includinga character by an electronic device according to various embodiments ofthe disclosure;

FIG. 12 illustrates a 3D avatar generated based on a 2D image includingan accessory by an electronic device according to various embodiments ofthe disclosure;

FIGS. 13 and 14 illustrate expression attributes related to a faceaccording to various embodiments of the disclosure;

FIG. 15 illustrates a 3D avatar generated using various 3D templates byan electronic device according to various embodiments of the disclosure;

FIGS. 16 and 17 illustrate attributes related to a 3D graphic objectgenerated based on a 2D image by an electronic device according tovarious embodiments of the disclosure;

FIG. 18 illustrates a 3D avatar generated based on a 2D image includingan external object corresponding to a face and an additional object byan electronic device according to various embodiments of the disclosure;

FIGS. 19A and 19B illustrate an operation in which an electronic devicegenerates an image including a plurality of 3D avatars according tovarious embodiments of the disclosure;

FIG. 20 illustrates expression attributes of a 3D avatar according tovarious embodiments of the disclosure;

FIGS. 21A, 21B, 21C, 21D, and 21E illustrate an operation in which anelectronic device generates a 3D avatar in a video call functionaccording to various embodiments of the disclosure; and

FIG. 22 illustrates an operation in which an electronic device shares a3D avatar with an electronic device of a video call counterpartaccording to various embodiments of the disclosure.

Throughout the drawings, like reference numerals will be understood torefer to like parts, components, and structures.

DETAILED DESCRIPTION

The following description with reference to the accompanying drawings isprovided to assist in a comprehensive understanding of variousembodiments of the disclosure as defined by the claims and theirequivalents. It includes various specific details to assist in thatunderstanding but these are to be regarded as merely exemplary.Accordingly, those of ordinary skill in the art will recognize thatvarious changes and modifications of the various embodiments describedherein can be made without departing from the scope and spirit of thedisclosure. In addition, descriptions of well-known functions andconstructions may be omitted for clarity and conciseness.

The terms and words used in the following description and claims are notlimited to the bibliographical meanings, but, are merely used by theinventor to enable a clear and consistent understanding of thedisclosure. Accordingly, it should be apparent to those skilled in theart that the following description of various embodiments of thedisclosure is provided for illustration purpose only and not for thepurpose of limiting the disclosure as defined by the appended claims andtheir equivalents.

It is to be understood that the singular forms “a,” “an,” and “the”include plural referents unless the context clearly dictates otherwise.Thus, for example, reference to “a component surface” includes referenceto one or more of such surfaces.

FIG. 1 is a block diagram illustrating an electronic device in a networkenvironment according to various embodiments of the disclosure.

Referring to FIG. 1 , the electronic device 101 in the networkenvironment 100 may communicate with an external electronic device 102via a first network 198 (e.g., a short-range wireless communicationnetwork), or an external electronic device 104 or a server 108 via asecond network 199 (e.g., a long-range wireless communication network).According to an embodiment, the electronic device 101 may communicatewith the external electronic device 104 via the server 108. According toan embodiment, the electronic device 101 may include a processor 120,memory 130, an input device 150, a sound output device 155, a displaydevice 160, an audio module 170, a sensor module 176, an interface 177,a haptic module 179, a camera module 180, a power management module 188,a battery 189, a communication module 190, a subscriber identificationmodule (SIM) 196, or an antenna module 197. In some embodiments, atleast one (e.g., the display device 160 or the camera module 180) of thecomponents may be omitted from the electronic device 101, or one or moreother components may be added in the electronic device 101. In someembodiments, some of the components may be implemented as singleintegrated circuitry. For example, the sensor module 176 (e.g., afingerprint sensor, an iris sensor, or an illuminance sensor) may beimplemented as embedded in the display device 160 (e.g., a display).

The processor 120 may execute, for example, software (e.g., a program140) to control at least one other component (e.g., a hardware orsoftware component) of the electronic device 101 coupled with theprocessor 120, and may perform various data processing or computation.According to one embodiment, as at least part of the data processing orcomputation, the processor 120 may load a command or data received fromanother component (e.g., the sensor module 176 or the communicationmodule 190) in volatile memory 132, process the command or the datastored in the volatile memory 132, and store resulting data innon-volatile memory 134, which can include an internal memory 136 and anexternal memory 138. According to an embodiment, the processor 120 mayinclude a main processor 121 (e.g., a central processing unit (CPU) oran application processor (AP)), and an auxiliary processor 123 (e.g., agraphics processing unit (GPU), an image signal processor (ISP), asensor hub processor, or a communication processor (CP)) that isoperable independently from, or in conjunction with, the main processor121. Additionally or alternatively, the auxiliary processor 123 may beadapted to consume less power than the main processor 121, or to bespecific to a specified function. The auxiliary processor 123 may beimplemented as separate from, or as part of the main processor 121.

The auxiliary processor 123 may control at least some of functions orstates related to at least one component (e.g., the display device 160,the sensor module 176, or the communication module 190) among thecomponents of the electronic device 101, instead of the main processor121 while the main processor 121 is in an inactive (e.g., sleep) state,or together with the main processor 121 while the main processor 121 isin an active state (e.g., executing an application). According to anembodiment, the auxiliary processor 123 (e.g., an ISP or a CP) may beimplemented as part of another component (e.g., the camera module 180 orthe communication module 190) functionally related to the auxiliaryprocessor 123.

The memory 130 may store various data used by at least one component(e.g., the processor 120 or the sensor module 176) of the electronicdevice 101. The various data may include, for example, software (e.g.,the program 140) and input data or output data for a command relatedthererto. The memory 130 may include the volatile memory 132 or thenon-volatile memory 134.

The program 140 may be stored in the memory 130 as software, and mayinclude, for example, an operating system (OS) 142, middleware 144, oran application 146.

The input device 150 may receive a command or data to be used by othercomponent (e.g., the processor 120) of the electronic device 101, fromthe outside (e.g., a user) of the electronic device 101. The inputdevice 150 may include, for example, a microphone, a mouse, a keyboard,or a digital pen (e.g., a stylus pen).

The sound output device 155 may output sound signals to the outside ofthe electronic device 101. The sound output device 155 may include, forexample, a speaker or a receiver. The speaker may be used for generalpurposes, such as playing multimedia or playing record, and the receivermay be used for an incoming calls. According to an embodiment, thereceiver may be implemented as separate from, or as part of the speaker.

The display device 160 may visually provide information to the outside(e.g., a user) of the electronic device 101. The display device 160 mayinclude, for example, a display, a hologram device, or a projector andcontrol circuitry to control a corresponding one of the display,hologram device, and projector. According to an embodiment, the displaydevice 160 may include touch circuitry adapted to detect a touch, orsensor circuitry (e.g., a pressure sensor) adapted to measure theintensity of force incurred by the touch.

The audio module 170 may convert a sound into an electrical signal andvice versa. According to an embodiment, the audio module 170 may obtainthe sound via the input device 150, or output the sound via the soundoutput device 155 or a headphone of an external electronic device (e.g.,an external electronic device 102) directly (e.g., wiredly) orwirelessly coupled with the electronic device 101.

The sensor module 176 may detect an operational state (e.g., power ortemperature) of the electronic device 101 or an environmental state(e.g., a state of a user) external to the electronic device 101, andthen generate an electrical signal or data value corresponding to thedetected state. According to an embodiment, the sensor module 176 mayinclude, for example, a gesture sensor, a gyro sensor, an atmosphericpressure sensor, a magnetic sensor, an acceleration sensor, a gripsensor, a proximity sensor, a color sensor, an infrared (IR) sensor, abiometric sensor, a temperature sensor, a humidity sensor, or anilluminance sensor.

The interface 177 may support one or more specified protocols to be usedfor the electronic device 101 to be coupled with the external electronicdevice (e.g., the external electronic device 102) directly (e.g.,wiredly) or wirelessly. According to an embodiment, the interface 177may include, for example, a high definition multimedia interface (HDMI),a universal serial bus (USB) interface, a secure digital (SD) cardinterface, or an audio interface.

A connection terminal 178 may include a connector via which theelectronic device 101 may be physically connected with the externalelectronic device (e.g., the external electronic device 102). Accordingto an embodiment, the connection terminal 178 may include, for example,a HDMI connector, a USB connector, a SD card connector, or an audioconnector (e.g., a headphone connector).

The haptic module 179 may convert an electrical signal into a mechanicalstimulus (e.g., a vibration or a movement) or electrical stimulus whichmay be recognized by a user via his tactile sensation or kinestheticsensation. According to an embodiment, the haptic module 179 mayinclude, for example, a motor, a piezoelectric element, or an electricstimulator.

The camera module 180 may capture a still image or moving images.According to an embodiment, the camera module 180 may include one ormore lenses, image sensors, ISPs, or flashes.

The power management module 188 may manage power supplied to theelectronic device 101. According to one embodiment, the power managementmodule 188 may be implemented as at least part of, for example, a powermanagement integrated circuit (PMIC).

The battery 189 may supply power to at least one component of theelectronic device 101. According to an embodiment, the battery 189 mayinclude, for example, a primary cell which is not rechargeable, asecondary cell which is rechargeable, or a fuel cell.

The communication module 190 may support establishing a direct (e.g.,wired) communication channel or a wireless communication channel betweenthe electronic device 101 and the external electronic device (e.g., theexternal electronic device 102, the external electronic device 104, orthe server 108) and performing communication via the establishedcommunication channel. The communication module 190 may include one ormore CPs that are operable independently from the processor 120 (e.g.,the AP) and supports a direct (e.g., wired) communication or a wirelesscommunication. According to an embodiment, the communication module 190may include a wireless communication module 192 (e.g., a cellularcommunication module, a short-range wireless communication module, or aglobal navigation satellite system (GNSS) communication module) or awired communication module 194 (e.g., a local area network (LAN)communication module or a power line communication (PLC) module). Acorresponding one of these communication modules may communicate withthe external electronic device via the first network 198 (e.g., ashort-range communication network, such as Bluetooth™, wireless-fidelity(Wi-Fi) direct, or IR data association (IrDA)) or the second network 199(e.g., a long-range communication network, such as a cellular network,the Internet, or a computer network (e.g., LAN or wide area network(WAN)). These various types of communication modules may be implementedas a single component (e.g., a single chip), or may be implemented asmulti components (e.g., multi chips) separate from each other. Thewireless communication module 192 may identify and authenticate theelectronic device 101 in a communication network, such as the firstnetwork 198 or the second network 199, using subscriber information(e.g., international mobile subscriber identity (IMSI)) stored in theSIM 196.

The antenna module 197 may transmit or receive a signal or power to orfrom the outside (e.g., the external electronic device) of theelectronic device 101. According to an embodiment, the antenna module197 may include an antenna including a radiating element composed of aconductive material or a conductive pattern formed in or on a substrate(e.g., a printed circuit board (PCB)). According to an embodiment, theantenna module 197 may include a plurality of antennas. In such a case,at least one antenna appropriate for a communication scheme used in thecommunication network, such as the first network 198 or the secondnetwork 199, may be selected, for example, by the communication module190 (e.g., the wireless communication module 192) from the plurality ofantennas. The signal or the power may then be transmitted or receivedbetween the communication module 190 and the external electronic devicevia the selected at least one antenna. According to an embodiment,another component (e.g., a radio frequency integrated circuit (RFIC))other than the radiating element may be additionally formed as part ofthe antenna module 197.

At least some of the above-described components may be coupled mutuallyand communicate signals (e.g., commands or data) therebetween via aninter-peripheral communication scheme (e.g., a bus, general purposeinput and output (GPIO), serial peripheral interface (SPI), or mobileindustry processor interface (MIPI)).

According to an embodiment, commands or data may be transmitted orreceived between the electronic device 101 and the external electronicdevice 104 via the server 108 coupled with the second network 199. Eachof the external electronic devices 102 and 104 may be a device of a sametype as, or a different type, from the electronic device 101. Accordingto an embodiment, all or some of operations to be executed at theelectronic device 101 may be executed at one or more of the externalelectronic devices 102, 104, or 108. For example, if the electronicdevice 101 should perform a function or a service automatically, or inresponse to a request from a user or another device, the electronicdevice 101, instead of, or in addition to, executing the function or theservice, may request the one or more external electronic devices toperform at least part of the function or the service. The one or moreexternal electronic devices receiving the request may perform the atleast part of the function or the service requested, or an additionalfunction or an additional service related to the request, and transferan outcome of the performing to the electronic device 101. Theelectronic device 101 may provide the outcome, with or without furtherprocessing of the outcome, as at least part of a reply to the request.To that end, a cloud computing, distributed computing, or client-servercomputing technology may be used, for example.

FIG. 2 is a flowchart illustrating a method of operating an electronicdevice which generates a three-dimensional (3D) avatar according tovarious embodiments of the disclosure.

Referring to FIG. 2 , according to various embodiments, an electronicdevice (for example, the electronic device 101 or the processor 120 ofFIG. 1 ) may obtain a first image for one or more external objectsthrough a camera (for example, the camera module 180 of FIG. 1 ) inoperation 210. The electronic device 101 may obtain a two-dimensional(2D) image through a 2D camera module 180 and the first image may be a2D image. The one or more external objects may include people, animals,or things. For example, the electronic device 101 may obtain a 2D imageof a user's face. The electronic device 101 may detect an externalobject corresponding to a face in the first image obtained through thecamera module 180. When no external object corresponding to the face isdetected, the electronic device 101 may provide a message indicatingthat no face is detected. When no external object corresponding to theface is detected, the electronic device 101 may block (or skip) aprocess for generating a 3D avatar related to the first image.

In operation 220, the electronic device 101 may provide, through adisplay (for example, the display device 160 of FIG. 1 ), a 3D graphicobject generated based on attributes related to the external objectcorresponding to the face. The attributes related to the external objectmay be defined for various characteristics related to the face. Forexample, the attributes related to the external object may include atleast one of shapes of elements of the face (e.g., eyes, eyebrows, nose,cheekbones, lips, teeth, cheeks, chin, forehead, hair, facial hair(e.g., a mustache or a beard), dimples, ears, the back of the head, anda temple region), colors, the relative position between the elements,the relative size ratio between the elements, and accessories fixed tothe head (for example, earrings, piercings, glasses, and nose rings).The electronic device 101 may generate a 3D graphic object by disposingat least one of the attributes related to an external objectcorresponding to the face on a 3D template for the face or head. Theelectronic device 101 may extract at least one of the attributes relatedto the external object to the face and apply the extracted attributevalue to the 3D template to generate the 3D graphic object. Theelectronic device 101 may generate a 3D graphic object by applying atleast one of attribute values for the length of the face, the width ofthe face, facial type, skin tone, the interval between eyes, the sizesof eyes, the existence or non-existence of a double eyelid, the color ofeyebrows, nose length, nose position, lip size, lip position, cheekboneposition, cheekbone size, and the existence or non-existence of a dimplein the external object to the 3D template. The electronic device 101 maygenerate a 3D graphic object using an attribute value (default value)designated to the 3D template. With respect to attributes related tohair or the back of the head, that is, attributes which are notextracted from the first image, the electronic device 101 may generate a3D graphic object by directly applying the attribute value designated tothe 3D template. The 3D graphic object may include all of the attributevalues related to the face extracted from the obtained first image andthe attribute value designated to the 3D template. The 3D template forthe face or head may be stored in a database. The database may beincluded in a memory (for example, the memory 130 of FIG. 1 ) or aserver (for example, the server 108 of FIG. 1 ). The electronic device101 may generate one or more 3D graphic objects by changing at least oneof the attributes related to the external object corresponding to theface and the 3D template. The electronic device 101 may display at leastone of the one or more generated 3D graphic objects on the displaydevice 160.

In operation 230, based on at least one attribute selected from aplurality of graphic attributes, which can be applied to the 3D graphicobject and the 3D graphic object, the electronic device 101 may generatea 3D avatar for the external object. The plurality of graphic attributeswhich can be applied to the 3D graphic object may include brightness,color contrast, lip color, eyebrow color, mustache (beard), hairstyle,or accessories on a face (for example, glasses, a hat, earrings, andpiercings). According to various embodiments, the plurality of graphicattributes which can be applied to the 3D graphic object may includemotion parameters for face motions. The motion parameters may includethe direction and size of the motion for each part of the face (forexample, eyebrows, eyelids, a nose, and oral angle). The electronicdevice 101 may set motion parameter values based on the attributesrelated to the external object corresponding to the face. For example,the electronic device 101 may set the direction and size for an oralangle motion among the motion parameters based on the size or shape of amouth extracted from the external object. The electronic device 101 maydisplay at least one of the plurality of graphic attributes and the 3Dgraphic object together through the display device 160. The electronicdevice 101 may apply at least one graphic attribute selected accordingto user input from the plurality of graphic attributes to the 3D graphicobject. The electronic device 101 may display, for example, thebrightness of the plurality of graphic attributes on the display device160, and when an input for the brightness is detected, may apply thedetected input brightness value to the 3D graphic object. In response toa user input for the displayed graphic attributes among the plurality ofgraphic attributes, the electronic device 101 may display a preview forthe 3D graphic object to which the input value is applied through thedisplay device 160. The electronic device 101 may display attributeswhich can be applied to the 3D graphic object and receive input for thedisplayed attributes to provide a function of editing the 3D graphicobject to the user. The electronic device 101 may generate a 3D avatarby applying at least one graphic attribute selected from the pluralityof graphic attributes to the 3D graphic object. The electronic device101 may generate a 3D avatar by applying at least one graphic attributeselected from the plurality of graphic attributes to the 3D graphicobject and reprocessing the 3D graphic object. Through part of theoperation for reprocessing the 3D graphic object, the electronic device101 may delete unnecessary information from the 3D graphic object andmake information which can be simplified brief to generate the 3Davatar. The 3D avatar may be stored in the memory (for example, thememory 130 of FIG. 1 ) or the server (for example, the server 108 ofFIG. 1 ). When the 3D avatar is stored in the server (for example, theserver 108 of FIG. 1 ), the electronic device 101 may provide the 3Davatar to the server (for example, the server 108 of FIG. 1 ) throughthe communication module 190. The 3D avatar may be stored in, forexample, a gl Transmission Format (glTF).

In operation 240, the electronic device 101 may generate a second imageincluding at least one object reflecting a predetermined facialexpression or motion using a 3D avatar. For example, the electronicdevice 101 may display one or more predetermined facial expressions ormotions in the 3D avatar. The electronic device may display one or morebody gestures using the 3D avatar. For example, the electronic device101 may detect a body shape (for example, detect a boundary line of abody image) and a motion of a person from an image (for example, a stillimage or a moving image) and generate an object reflecting the bodyshape and the motion (for example, generate skeleton informationcorresponding to the detected body shape and motion and reflect theskeleton information in a shape or a motion of each part of the bodysuch that the object communicates a body gesture with a highsimilarity). The electronic device may display one or more backgroundeffects with the 3D avatar. The electronic device 101 may generate oneor more objects based on a 3D avatar generated by applying apredetermined facial expression or motion to at least one of a facialexpression, a body gesture, and a background effect and generate a 2Dimage based on the one or more objects. The electronic device 101 maygenerate the second image including one or more objects using the 3Davatar based on a predetermined number of facial expressions or motions.For example, based on a predetermined expression set, in which at leastone of an avatar facial expression, an avatar gesture, a background, andan animation effect is changed, the electronic device 101 may reflectthe predetermined expression set in the 3D avatar to generate objectscorresponding to the predetermined number of expression sets. The secondimage including the generated objects may be an avatar character. Thesecond image may be a 2D image including one or more objects. Theelectronic device 101 may store the second image in the form of a stillimage or a moving image. According to various embodiments, theelectronic device 101 may generate the second image using a 3D avatarreflecting at least one of the avatar facial expression, the avatargesture, the animation effect, and the background effect. The secondimage may be stored in the memory (for example, the memory 130 of FIG. 1) or the server (for example, the server 108 of FIG. 1 ). When thesecond image is stored in the server (for example, the server 108 ofFIG. 1 ), the electronic device 101 may provide the second image to theserver (for example, the server 108 of FIG. 1 ) through thecommunication module 190. The second image may be stored in, forexample, a moving image file format (for example, mp4 or a gif). Theelectronic device 101 may provide various applications using thegenerated avatar characters. The electronic device 101 may provide theavatar characters through a keyboard application. For example, theelectronic device 101 may provide a message sending application, a photoediting application, or a video call application using avatar charactersincluded in the keyboard application. The avatar characters may beprovided in other various applications.

FIGS. 3A, 3B, 3C, 3D, 3E, and 3F illustrate an example for an operationof generating a 3D avatar provided from the electronic device to a useraccording to various embodiments of the disclosure.

The electronic device 101 may generate a 3D avatar through a cameramodule (for example, the camera module 180 of FIG. 1 ). The electronicdevice 101 may execute the camera module 180 and provide an executionscreen including an icon for generating a 3D avatar through a display(for example, the display device 160 of FIG. 1 ).

Referring to FIG. 3A, a preview screen area 301 for photographing animage, an icon 302 for creating a 3D avatar, a 3D avatar list 303, andan icon 304 for photography by a camera may be included. The electronicdevice 101 may display the icon 302 including text such as “createavatar”. When the icon 302 for creating the avatar is selected, theelectronic device 101 may obtain a user's facial image through thecamera module 180.

Referring to FIG. 3B, the electronic device 101 may provide a previewscreen area 311 for photographing an object including a face for which a3D avatar will be generated and an icon 312 for camera photography. Inorder to obtain an image corresponding to various face angles or facialexpressions in camera photography, guide information (for example, headorientation direction guide and emotion expression imitating guide)indicating a head orientation direction or facial expression may befurther displayed. In camera photography, a plurality of photographedimages through video photographing may be received.

Referring to FIG. 3C, the electronic device 101 may provide an area fordisplaying a photographed face image 321, an icon 322 for selecting agender when an avatar is generated, and an icon 323 indicating selectioncompletion. The electronic device 101 may generate one or more 3Dgraphic objects based on attributes related to the face in one or morephotographed face images. The electronic device 101 may extractattributes related to the face from the face image and apply theattributes to a 3D template corresponding to the face to generate arealistic 3D graphic object. The electronic device 101 may extractattributes related to the face from the face image, change some of theextracted attributes, and apply the changed attributes to a 3D templatecorresponding to the face to generate a corrected 3D graphic object. Theattributes related to the face may include at least one of shapes, therelative position between respective elements, the relative size ratiobetween respective elements, colors, and motion directions of faceelements (e.g., eyes, eyebrows, nose, cheekbone, lips, teeth, cheek,chin, forehead, mustache (beard), dimples, and ears). The electronicdevice 101 may provide at least one of the one or more generated 3Dgraphic objects through the display device 160 and display a 3D graphicobject selected from the at least one provided 3D graphic object on thescreen.

Referring to FIG. 3D, the electronic device 101 may provide one or moreicons 332 and 333 corresponding to one or more 3D graphic objects and apreview area 331 for displaying a selected 3D graphic object. Forexample, the electronic device 101 may display an icon 332 correspondingto a first 3D graphic object and an icon 333 corresponding to a second3D graphic object and display the selected first 3D graphic object 322in the preview area 331. The electronic device 101 may extractattributes related to the face from the face image 321 and apply theextracted attribute value to a 3D template to generate the first 3Dgraphic object. The electronic device 101 may extract attributes relatedto the face from the face image 321, apply the extracted attribute valueto a 3D template, and correct the 3D template according to apredetermined condition to generate the second 3D graphic object.According to an embodiment, during creation of a 3D graphic object, a 3Dgraphic object excluding a glasses attribute may be generated by notextracting or excluding an accessory (for example, glasses orearrings)-related attributes from the attributes related to the face.The electronic device 101 may use a default attribute value of the 3Dtemplate for attributes related to the face which are difficult toobtain from a 2D image. The electronic device 101 may provide at leastone of a plurality of graphic attributes which can be applied to the 3Dgraphic object together with the 3D graphic object. The electronicdevice 101 may provide a selection bar 334 for controlling skin toneattributes of the 3D graphic object. The electronic device may controlthe skin tone to be dark according to an input for moving the selectionbar 334 to the side of (−) and control the skin tone to be lightaccording to an input for moving the selection bar 334 to the side of(+). The electronic device 101 may provide a preview in the preview area331 by applying the input skin tone value to the 3D graphic object inresponse to the input. According to an embodiment, an initial positionof the selection bar 334 may be determined based on the attributes (forexample, color and brightness) of the face area extracted from the image311 received through camera module 180 of the electronic device 101. Tothis end, an additional operation for determining the attributes of theface area may be performed. For example, during photography by thecamera module 180 using an illumination sensor included in the sensormodule 176 of, the electronic device 101 may measure the illumination ofambient light and correct the attributes of the extracted face areabased on the measured illumination.

Referring to FIG. 3E, the electronic device 101 may generate a 3D avatarof a user's face based on graphic attributes that are selected accordingto user input and a 3D graphic object. The electronic device 101 maydisplay a generated 3D avatar 341 in the preview area. The electronicdevice 101 may provide an avatar list area 342 for displaying one ormore 3D avatars. The electronic device 101 may add an icon 343corresponding to the generated 3D avatar 341 and display the same in theavatar list area 342. The electronic device 101 may generate a 2D imageincluding at least one object reflecting a predetermined facialexpression or motion through a 3D avatar. For example, the electronicdevice 101 may generate an object based on a 3D avatar to which a smileis applied and generate a 2D image including the object. For example, itis possible to generate the object included in the 3D avatar by addingan accessory icon to the avatar list area 342 based on accessoryattributes that are pre-extracted from the 3D avatar and selecting theaccessory icon. The electronic device 101 may provide a function ofinputting an avatar character through the 2D image. For example, theelectronic device 101 may provide a photo edit including a function ofinputting an avatar character. According to various embodiments, theelectronic device 101 may add an object selected from at least oneobject included in the 2D image to the photo when editing the photo, andprovide a function of editing the photo by controlling the position,size, or direction of the added object.

Referring to FIG. 3F, the electronic device 101 may display an area 351for displaying a photo to be edited, an icon 352 for providing afunction of inputting an avatar character, and an area 353 fordisplaying one or more objects included in the selected avatar characteron the screen for the photo edit. The one or more objects included inthe avatar character may include at least one of a facial expression ofthe avatar, a gesture of the avatar, a background image, and ananimation effect. The electronic device 101 may add a photo for editinga first object 354 selected from one or more objects included in theselected avatar and display the same in the area 351 for displaying thephoto including the object 355. The first object 354 may include a frown3541, a gesture 3542 of covering the face with both hands, and anoverhead cloud background 3543. The electronic device 101 may change theposition, size, or direction of the object 355 to be edited according touser input.

FIGS. 4A, 4B, and 4C illustrate a 3D graphic object generated by anelectronic device and graphic attributes which can be applied to the 3Dgraphic object according to various embodiments of the disclosure.

Referring to FIG. 4A, the electronic device 101 may display screens 410and 420 including at least one 3D graphic object generated based on auser's face image. The electronic device 101 may generate a variety of3D graphic objects by applying various attribute values related to theface. The electronic device 101 may generate a first 3D graphic objectby applying eyes, a nose, and a mouth that are extracted from the user'sface image to a 3D template. The electronic device 101 may generate asecond 3D graphic object by correcting eyes, a nose, and a mouthextracted from the user's face image according to a predeterminedcorrection reference and applying the corrected eyes, nose, and mouth toa 3D template. For example, the predetermined correction reference maybe configured to change the size of eyes extracted from the user's faceimage to a predetermined value, change the position and shape of a noseto a predetermined value, and change the shape and color of lips to apredetermined value.

Referring to FIG. 4A, the electronic device 101 may display a first icon411 corresponding to the first 3D graphic object and a second icon 412corresponding to the second 3D graphic object, and may display the first3D graphic object on the screen 410 when the first icon 411 is selectedaccording to user input and display the second 3D graphic object on thescreen 420 when the second icon 412 is selected according to user input.

The electronic device 101 may simultaneously display the 3D graphicobject and an icon indicating attributes which can be applied to the 3Dgraphic object. Referring to FIG. 4B, the electronic device 101 maydisplay a slider control 413 for selecting attributes of a skin tone ofthe 3D graphic object and darken or lighten the skin tone according to auser input for the slider control 413. The electronic device 101 maydisplay a screen 430 on which the 3D graphic object with a dark skintone is displayed in response to the user input of darkening the skintone and display a screen 440 on which the 3D graphic object with alight skin tone is displayed in response to the user input of lighteningthe skin tone.

The electronic device 101 may define one or more attributes which can beapplied to the 3D graphic object as parameters and designate defaultattribute values to the parameters. The electronic device 101 mayextract attribute values corresponding to one or more attributes whichcan be applied to the 3D graphic object from the 2D image. The one ormore attributes which can be applied to the 3D graphic object maycorrespond to one or more attributes which can be applied to theexternal object included in the 2D image. For example, eyes, a nose, amouth, a hair style, or glasses which can be applied to the externalobject may be applied to the 3D graphic object. The electronic device101 may determine attribute values for the one or more attributes whichcan be applied to the 3D graphic object in accordance with a 3Dtemplate. The electronic device 101 may generate one or more attributevalues which can be applied to the 3D graphic object based on userinput. For example, referring to FIG. 4C, the electronic device 101 mayprovide a screen 450 for editing hairstyle attributes which can beapplied to the 3D graphic object, a screen 460 for editing glassesaccessory attributes, and a screen 470 for editing a 3D avatar outfitattributes. The electronic device 101 may provide a hairstyle list 451and a hair color list 452 for the hairstyle attributes which can beapplied to the 3D graphic object. The electronic device 101 maypreferentially apply a first hairstyle selected from the hairstyle list451 based on the attributes extracted from the 2D image or attributesset in accordance with the 3D template and display the first hairstyleon the 3D graphic object. For example, the electronic device 101 mayselect a hairstyle which matches facial type attributes based on thefacial type attributes extracted from the 2D image as the firsthairstyle and preferentially apply the selected hairstyle. Theelectronic device 101 may display the 3D graphic object to which theselected hairstyle and hair color are applied. The electronic device 101may provide a glasses accessory list 461 which can be applied to the 3Dgraphic object, apply a selected glasses accessory to the 3D graphicobject, and display the 3D graphic object. The electronic device 101 mayprovide a 3D avatar outfit list 471 which can be applied to the 3Dgraphic object and display the 3D graphic object to which a selected 3Davatar costume is applied.

FIG. 5 illustrates an operation in which an electronic device generatesa 3D avatar based on a 2D image according to an embodiment of thedisclosure.

Referring to FIG. 5 , the electronic device 101 may extract an externalobject corresponding to a face from a 2D image including one or moreexternal objects. Specifically, the electronic device 101 may extract anexternal object 511 corresponding to a face from a 2D image 510including the user's face. The electronic device 101 may determinewhether the face is included in the 2D image 510 through a facedetection algorithm. For example, at least part of a method ofextracting the external object may use a rule-based model or anartificial intelligence model learned according to at least one ofmachine learning, a nerve network, and a deep learning algorithm. Theelectronic device 101 may receive an artificial intelligence model froma server. For example, the electronic device 101 may extract theexternal object 511 corresponding to the face from the 2D image 510through a multi-task cascaded neural network (MTCNN). The externalobject 511 may include eyes 521 and 522, a nose 523, or lips 524indicating attributes related to the face. The electronic device 101 maydefine attributes which can be applied to the external object 511 asparameters and designate attribute values extracted from the externalobject 511 as parameter values. The attributes which can be applied tothe external object 511 may include, for example, at least one ofgender, race, age, attractiveness, facial expression hair color, part,hair length, cheekbone, face type, skin tone, eye position, eye size,eyebrow length, eyebrow shape, eyebrow size, nose length, nose position,nose shape, lip shape, lip color, lip length, hat, glasses, earrings,necklace, lipstick color, and necktie shape. For example, the electronicdevice 101 may define a parameter for gender and designate a female ormale value. The electronic device 101 may determine a 3D template 530for creating a 3D avatar. The 3D template may be varied according to thetype of the 3D avatar to be generated. For example, the electronicdevice 101 may use different 3D templates depending on gender, race,nationality, or age. In another example, the electronic device 101 maygenerate a 3D avatar for an animal, a character, or a thing, and may usevarious 3D templates according to an animal shape, a character shape, oran object shape. The electronic device 101 may receive at least one 3Dtemplate from an external electronic device. The electronic device 101may generate a 3D avatar 540 by applying attributes related to theexternal object 511 extracted from the 2D image 510 to the 3D template.The electronic device 101 may provide the 3D graphic object (not shown)generated through the application of the attributes related to theexternal object 511 extracted from the 2D image 510 to the 3D template.The attributes which can be applied to the external object may beapplied to the 3D graphic object. The electronic device 101 may generatethe 3D graphic object by reflecting attributes extracted from theexternal object or attributes selected by a user input and generate a 3Davatar 540 based on the 3D graphic object. The electronic device 101 maygenerate the 3D avatar 540 by applying the eye 521 of the externalobject 511 to an eye area of the 3D template 530. The electronic device101 may generate the 3D avatar 540 with an attribute value designated tothe 3D template 530 for attributes which are not extracted from theexternal object 511, for example, a hairstyle. The electronic device 101may output one or more sample attributes of the attributes which can beapplied to the external object to the user through the display (forexample, the display device 160 of FIG. 1 ). The electronic device 101may generate the 3D avatar 540 by applying attributes selected from theone or more sample attributes according to a user's selection. Theelectronic device 101 may select recommended attributes from the one ormore sample attributes based on the attributes extracted from the 2Dimage or the determined 3D template and provide the recommendedattributes. The electronic device 101 may provide a preview to the userby providing the 3D graphic object reflecting the sample attributesthrough the display device 160.

FIG. 6 illustrates a 2D image including at least one object generatedusing a 3D avatar by an electronic device according to variousembodiments of the disclosure.

Referring to FIG. 6 , the electronic device 101 may generate one or moreobjects by applying one or more facial expressions or motions designatedto the 3D avatar. The object may be determined in accordance with atleast one of a facial expression of the avatar, a gesture of the avatar,a background, and an animation effect. For example, the one or moredesignated facial expressions or motions may be designated to at leastone of the facial expression of the avatar, the gesture of the avatar,the background, and the animation effect. For example, a smile, crying,or a remote expression may be used for the facial expression of theavatar, and a gesture of making a heart with hands or a gesture ofnodding an avatar's head may be used for the gesture of the avatar. Atleast one of the facial expression of the avatar, the gesture of theavatar, the background, and the animation effect may be designated as amotion. The electronic device 101 may generate at least one object byapplying the designated facial expression or motion through the avatargenerated for the external object corresponding to the face extractedfrom the 2D image that is obtained using the camera (for example, thecamera module 180 of FIG. 1 ). The electronic device 101 may generate apredetermined number of objects at a time by applying a predeterminednumber of facial expressions or motions to the 3D avatar. For example,the electronic device 101 may generate 18 different objects by applyinga set of 18 predetermined expressions to the 3D avatar. The set of 18predetermined expressions may be designated by changing at least one ofthe facial expression of the avatar, the gesture of the avatar, thebackground, and the animation effect. The 2D image including one or moreobjects may be an avatar character. The electronic device 101 may outputthe avatar character through the display (for example, the displaydevice 160 of FIG. 1 ).

The electronic device 101 may generate one or more avatar charactersthrough one or more 3D avatars and provide a 3D avatar character listthrough the display device 160. For example, the electronic device 101may display an avatar character 610 on the display device 160 anddisplay one or more objects included in the avatar character 610 in afirst area 611. The first area 611 may include a plurality of objects ofwhich at least one of facial expressions of the avatar, gestures of theavatar, backgrounds, and animation effects are different. A first object620 among the one or more objects included in the avatar character 610may include an avatar 621 and a background 622. The avatar 621 of thefirst object 620 may be generated according to a predetermined facialexpression or gesture and the background 622 of the first object 620 mayinclude an additional object 623. An animation effect may be applied tothe avatar 621 or the background 622 of the first object 620. Forexample, the additional object 623 of the background 622 may include aneffect moving leftward and rightward. The avatar character may be astill image or a moving image. When the avatar character is a movingimage, at least one of the facial expression of the avatar of theobject, the gesture of the avatar, the background, and the additionalobject may move.

FIG. 7 illustrates editing a photo using an avatar character by theelectronic device according to various embodiments of the disclosure.

Referring to FIG. 7 , the electronic device 101 may display a selectedobject of the avatar character in a first position 711 on a photo editscreen 710. The electronic device 101 may move the object from the firstposition 711 to another position according to user input. The electronicdevice 101 may display the photo edit screen 720 on which the object hasmoved to a second position 721. The electronic device 101 may change thesize or direction of the object according to user input. The electronicdevice 101 may display a photo edit screen 730 including an object 731of which the size or direction is changed.

FIG. 8 illustrates transmitting a selected object of an avatar characterthrough a message by an electronic device according to variousembodiments of the disclosure.

Referring to FIG. 8 , the electronic device 101 may provide the avatarcharacter generated using the 3D avatar through a keyboard application.The electronic device 101 may provide the avatar character included inthe keyboard application through a message transmission application. Forexample, the electronic device 101 may provide a screen area 810 inwhich an application for transmitting a message is executed. The screenarea 810 may include a first area 811 for displaying the content of themessage, a second area 812 for displaying an item list for writing themessage, and a third area 813 for selecting items to input into themessage. The items for input into the message may include a text inputitem, a photo input item, a file attachment item, a voice input item, aposition transmission item, or an avatar character input item.

The electronic device 101 may provide, as an avatar character, a secondimage including at least one object in which a predetermined facialexpression or motion is reflected using a 3D avatar generated inaccordance with an external object included in a first image obtainedthrough the camera (for example, the camera module 180 of FIG. 1 ). Theavatar character input item may be included in the items for inputtinginto the message. The electronic device 101 may display the second area812 including the avatar character input item 814. The electronic device101 may provide the avatar character in the third area in response to aselection of the avatar character input item 814 in the displayed itemlist.

The electronic device 101 may display, in a first area 822, one or moreobjects included in a first avatar character 821 selected from one ormore avatar characters in the screen area 820 in which the applicationfor sending a message is executed. The electronic device 101 may provideone or more avatar characters in a list form. The one or more objectsincluded in the first avatar character 821 may include different facialexpressions or motions. For example, a first object 823 may include asmile.

The electronic device 101 may display a preview 832 and a send button ofthe first object 831 in a first area 835 for displaying the content ofthe message in response to a selection of the first object 831 among theone or more objects displayed in the screen area 830 in which theapplication for sending the message is executed. When the first object831 is a moving image, the electronic device 101 may play the firstobject 831 and provide the preview 832. The electronic device 101 maytransmit the selected first object 831 through the message in responseto clicking the send button 833. The electronic device 101 may displayand provide, in a first area 841 for displaying the content of themessage, a selected first object 842 of the avatar character in thescreen area 840 in which the application for sensing the message isexecuted.

FIG. 9 illustrates editing contacts to include an avatar character by anelectronic device according to various embodiments of the disclosure.

Referring to FIG. 9 , the electronic device 101 may display a photo item911 and a name item 912 in an application execution screen area 910 forstoring and managing contacts. The electronic device 101 may display anobject selected from one or more objects included in the avatarcharacter in the photo item 911 of the contact. According to variousembodiments, the electronic device 101 may provide the photo item andthe name item of the contact to the display (for example, the displaydevice 160 of FIG. 1 ) in response to receiving a call and display anobject stored in the photo item of the contact.

FIG. 10 illustrates a 3D avatar generated based on a 2D image includingan animal head by an electronic device according to various embodimentsof the disclosure.

Referring to FIG. 10 , when an external object is an animal, theelectronic device 101 may generate a 3D avatar using a 3D templatecorresponding to the animal. The electronic device 101 may obtain a 2Dimage 1001 including a mouse's head. The electronic device 101 maydetect head-related attributes from the 2D image 1001 including themouse's head or may transmit the 2D image 1001 to an external electronicdevice or a server and the external electronic device or the server maydetect head-related attributes. The electronic device 101, the externalelectronic device, or the server may determine a 3D template 1002corresponding to mouse head attributes based on the head-relatedattributes. The electronic device 101 may receive the 3D template 1002from the external electronic device or the server. The electronic device101 may generate a 3D avatar 1003 by applying mouse's head-relatedattributes extracted from the 2D image 1001 to the 3D template 1002. Forexample, the mouse's head-related attributes may include at least one ofshapes of elements of the head (eyes, eyebrows, cheekbone, lips, teeth,cheek, chin, forehead, hair, mustache (beard), ears, the back of thehead, and a temple region), colors, the relative position between theelements, and the relative size ratio between the elements. In order toextract an external object corresponding to the animal's head from the2D image 1001, the electronic device 101 may use information generatedby analyzing and determining characteristics of the animal's head.

FIG. 11 illustrates a 3D avatar generated based on a 2D image includinga character by an electronic device according to various embodiments ofthe disclosure.

Referring to FIG. 11 , when an external object is a character, theelectronic device 101 may generate a 3D avatar using a 3D templatecorresponding to the character. The electronic device 101 may receivethe 3D template corresponding to the character from an externalelectronic device or a server. The electronic device 101 may obtain a 2Dimage 1101 including a character. For example, the character may includeat least one of a cartoon character, an animal character, a plantcharacter, a character of a particular person, a character of a thing,and a movie hero character. The electronic device 101 may determine the3D template 1102 corresponding to the character. The electronic device101 may generate the 3D avatar 1103 by applying attributes related tothe character extracted from the 2D image 1101 to the 3D template 1102.For example, the attributes related to the character may include one ormore of shapes of elements of the character (head, aims, legs, andbody), colors, the relative position between the elements, the relativesize between the elements, and accessories which can be applied to theelements (hair band, bag, glasses, and items).

FIG. 12 illustrates a 3D avatar generated based on a 2D image includingan accessory by an electronic device according to various embodiments ofthe disclosure.

Referring to FIG. 12 , the electronic device 101 may obtain a 2D image1210 including an electrical outlet. The electronic device 101 mayextract a configuration corresponding to attributes related to a facefrom the electrical outlet through a face feature extraction algorithm.According to various embodiments, the electronic device 101 maydesignate attributes related to the face from the 2D image 1210according to user input. The electronic device 101 may designate a firstconfiguration 1201 of the electrical outlet as a face form in the 2Dimage 1220 according to a user input, second configurations 1202 of theelectrical outlet as eyes, and a third configuration 1203 of theelectrical outlet as a mouth. The electronic device 101 may designate a3D template 1230 to generate a 3D avatar corresponding to the electricaloutlet. The electronic device 101 may select a 3D template similar tothe electrical outlet among one or more 3D templates or use apredetermined 3D template. The electronic device 101 may generate a 3Davatar by applying face-related attributes values associated with theconfigurations 1201, 1202, and 1203 to the 2D image 1210 to the 3Dtemplate 1230. The electronic device 101 may generate one or moreobjects 1241, 1242, and 1243 by reflecting expression attributes relatedto a predetermined facial expression through the 3D avatar. Theelectronic device 101 may provide a 2D image 1240 including one or moreobjects.

FIGS. 13 and 14 illustrate expression attributes related to a faceaccording to various embodiments of the disclosure.

The electronic device (for example, the electronic device 101 or theprocessor 120 of FIG. 1 ) may variously change facial expressions of a3D avatar at least using expression attributes related to a face. Theexpression attributes related to the face may be classified according tocircumstances and may be defined according to elements included in theface.

Referring to FIG. 13 , circumstances may include normal, smile 1, andsmile 2, expression attributes corresponding to eyes may be defined byshapes, and expression attributes corresponding to a mouth may bedefined by shapes. The electronic device 101 may not designateattributes of eyes but may designate an attribute value of a mouth as anupwardly rounded semicircular shape in the normal circumstance. Theelectronic device 101 may directly apply the attribute value of the eyesextracted from the 2D image and may change the attribute value of themouth extracted from the 2D image to the semicircular shape according toexpression attributes and apply the changed value in order to generatethe 3D avatar in the normal circumstance. The electronic device 101 mayclassify and designate similar circumstances as one circumstance.

Referring to FIGS. 12 and 13 , the electrical outlet of FIG. 12indicates a facial expression corresponding to the normal circumstancein FIG. 13 . According to an embodiment, the electronic device 101 maydetect attributes of a face element from an image including a faceobject received through the camera module 180, determine expressionattributes corresponding to the detected attributes of the face element,and change a 3D avatar in accordance with the determined expressionattributes. Accordingly, the electronic device 101 may detect a changefrom the face image received in real time, change a 3D avatar 1230 inaccordance therewith, and change one or more objects 1241, 1242, and1243 according thereto.

Referring to FIG. 14 , the electronic device 101 may classify a generalcircumstance, a default circumstance, and a standby circumstance as onecircumstance and define expression attributes corresponding to eyes asexpression attribute set 1 and expression attribute set 2. FIG. 14illustrates a plurality of expression attribute sets related to eyes andeach of other elements (for example, the nose, the mouth, and the ears)may have a plurality of expression attribute sets although notillustrated. According to an embodiment, the expression attribute setsof different elements may have a correlation therebetween. For example,expression attribute set 1 of the eyes and expression attribute set 1 ofthe mouth may have a correlation therebetween and expression attributeset 2 of the eyes and expression attribute set 2 of the mouth may have acorrelation therebetween. For example, one attribute group may includeexpression attribute sets having a correlation therebetween. Forexample, in the case of avatar character 1, attribute group 1corresponding thereto may include expression attribute set 1 of the eyesand expression attribute set 1 of the mouth having the correlationtherebetween.

FIG. 15 illustrates a 3D avatar generated using various 3D templates byan electronic device according to various embodiments of the disclosure.

Referring to FIG. 15 , the electronic device 101 may generate a 3Davatar based on a 2D image including an external object. The electronicdevice 101 may determine whether an external object included in a 2Dimage 1510 includes a face, and when the face is included, may extractthe face. The electronic device 101 may extract a face area 1520including ears, eyes, and a mouth from the external object. Theelectronic device 101 may select a target 1530 to which expressionattributes are applied in the face area 1520. For example, theelectronic device 101 may provide the extracted face area 1520 through adisplay (for example, the display device 160 of FIG. 1 ) and select eyesfor the target 1530 in the displayed face area 1520 according to userinput. The electronic device 101 may determine a 3D template 1540 forcreating a 3D avatar. The electronic device 101 may select the 3Dtemplate 1540 different from the external object corresponding to theface of the 2D image 1510. For example, the electronic device 101 maydetermine a 3D template corresponding to a 3D avatar according to userinput. When the 3D template 1540 does not include a configurationcorresponding to the face, the electronic device 101 may select amatching area of the 3D template 1540 in order to apply the face of theexternal object extracted from the 2D image 1510 to the 3D template1540. The electronic device 101 may determine to match the face area1520 of the external object with a first position 1551 of the 3Dtemplate 1550. At this time, the electronic device 101 may furtherinclude an operation for displaying a candidate area of the 3D template1550 with which the face area 1520 of the external object may match andselecting the candidate area. For example, the candidate area mayfurther include an operation for determining whether a condition (forexample, a template size and shape) under which the face area 1520 ofthe external object can be disposed on the 3D template 1550 issatisfied. According to an embodiment, the shape of the 3D template 1550may be changed based on the face area 1520 of the external object tomatch therewith. For example, the electronic device 101 may determineanother 3D template (not shown) which is changed in accordance with some(for example, ears) of the face area 1520 that does not match the firstposition 1551 of the 3D template 1540 or has a high similarity.

The electronic device 101 may apply an attribute value of the face area1520 to the first position 1551 of the 3D template 1540. The electronicdevice 101 may display a 3D graphic object 1560 generated by applyingattributes of the external object 1510 to the 3D template 1540. Theelectronic device 101 may apply predetermined expression attributes tothe target selected from the 3D graphic object 1560 to apply expressionattributes. The electronic device 101 may generate a 3D avatar 1570 byapplying smiling expression attributes to eyes 1571 selected from the 3Dgraphic object 1560. According to an embodiment, when selecting a targetto which expression attributes are applied in the 3D graphic object 1560and selecting expression attributes, the electronic device 101 maydetect attributes of face elements from a face image (for example, aface of a person, an animal, or a character) additionally receivedthrough the camera module 180 and determine one or more targets (forexample, elements (for example, eyes 1571) of the external 3D graphicobject 1560) and expression attributes corresponding to the targetsbased on the detection (for example, attribute change detection) togenerate the 3D avatar 1570.

FIGS. 16 and 17 illustrate attributes related to a 3D graphic objectgenerated based on a 2D image by an electronic device according tovarious embodiments of the disclosure.

Referring to FIG. 16 , the electronic device 101 may generate graphicattributes which can be applied to the 3D graphic object. In particular,the electronic device 101 may obtain a 2D image 1601 including anaccessory which can be applied to the 3D graphic object. The electronicdevice 101 may generate one or more attributes which can be applied tothe 3D graphic object based on the 2D image obtained through the camera(for example, the camera module 180 of FIG. 1 ). The one or moreattributes which can be applied to the 3D graphic object may include,for example, at least one of gender, race, age, attractiveness, facialexpression, hair color, part, hair length, cheekbone, face type, skintone, eye position, eye size, eyebrow length, eyebrow shape, eyebrowsize, nose length, nose position, nose shape, lip shape, lip color, liplength, hat, glasses, earrings, necklace, lipstick color, and necktieshape. The electronic device 101 may provide guide information fordescribing an operation of generating one or more attributes which canbe applied to the 3D graphic object through the display (for example,the display device 160 of FIG. 1 ). For example, the electronic device101 may provide a list of one or more attributes which can be applied tothe 3D graphic object through the display device 160. The electronicdevice 101 may provide guide information for camera photography throughthe display device 160 in order to generate attributes selected by userinput. The electronic device 101 may provide, for example, guideinformation such as “photograph glasses at the center of the screen” inorder to generate glasses attributes. The electronic device 101 mayobtain a 2D image 1601 including glasses through the camera module 180.The electronic device 101 may determine a 3D template 1602 correspondingto the glasses extracted from the 2D image 1601. The electronic device101 may make a request for or receive at least one template related to athing extracted from the 2D image 1601 from an external electronicdevice or a server in order to determine the 3D template correspondingto the thing extracted from the 2D image 1601. For example, theelectronic device 101 may search for the name of the thing and obtain a3D template. The electronic device 101 may extract attributes related tothe glasses extracted from the 2D image 1601 and apply an attributevalue of the extracted glasses to the 3D template 1602 to generategraphic attributes 1603. The electronic device 101 may display thegenerated graphic attributes 1603 in a graphic attribute list area. Theelectronic device 101 may apply the generated graphic attributes 1603 tothe 3D graphic object 1604 and display the 3D graphic object 1604 inorder to provide a preview to the user. The electronic device 101 mayprovide a function of changing or deleting the generated graphicattributes 1603. The electronic device 101 may obtain another 2D imagethrough the camera module 180 in order to change the generated graphicattributes 1603. The electronic device 101 may change the 3D template1602 corresponding to the glasses in order to change the generatedgraphic attributes 1603.

Referring to FIG. 17 , the electronic device 101 may obtain a 2D image1701 including attributes which can be applied to a 3D graphic object.The electronic device 101 may extract attributes from the 2D image 1701.Attributes which can be applied to the 3D graphic object may include acolor, a pattern, or a shape. For example, the attributes may be a checkpattern with a red color. The electronic device 101 may select a 3Dtemplate 1702 to which the attributes extracted from the 2D image 1701are applied. The electronic device 101 may select the 3D template 1702corresponding to a top and apply the extracted attributes to theselected 3D template 1702 to generate graphic attributes 1703. Theelectronic device 101 may provide the generated graphic attributes 1703through the display device 160, and when the graphic attributes 1703 areselected, may apply the graphic attributes 1703 to the 3D graphic object1704 and display the 3D graphic object 1704.

FIG. 18 illustrates a 3D avatar generated based on a 2D image includingan external object corresponding to a face and an additional object byan electronic device according to various embodiments of the disclosure.

Referring to FIG. 18 , the electronic device 101 may extract one or moreexternal objects 1811, 1812, and 1813 included in a 2D image 1810. Theelectronic device 101 may determine whether the one or more extractedexternal objects 1811, 1812, and 1813 correspond to faces. For example,the electronic device 101 may determine that the first external object1811 and the second external object 1812 correspond to human faces andthat the third external object 1813 does not correspond to the face. Theelectronic device 101 may generate a 3D avatar including the externalobject which does not correspond to the face. The electronic device 101may determine whether one or more external objects are included inpredetermined additional objects. The additional objects indicateobjects which do not correspond to the face but can be included in the3D avatar and be, for example, landmarks, characters, or objectsdesignated by the user. When the one or more external objects includedin the 2D image correspond to landmarks, characters, or objectsdesignated by the user, the electronic device 101 may generate a 3Davatar including the external objects.

Referring to FIG. 18 , the 2D image 1810 may include two people and theEiffel Tower. The electronic device 101 may determine that the EiffelTower is the additional object and generate a 3D avatar including theEiffel Tower. The electronic device 101 may generate a 3D avatar 1820including the first external object 1811 corresponding to the face, thesecond external object 1812 corresponding to the face, and the thirdexternal object 1813 corresponding to the Eiffel Tower. The electronicdevice 101 may generate each 3D graphic object based on the firstexternal object 1811, the second external object 1812, and the thirdexternal object 1813 and determine graphic attributes which can beapplied to the 3D graphic objects to generate the 3D avatar 1820. Theelectronic device 101 may generate the 3D avatar 1820 by applying afacial expression of the avatar, a gesture of the avatar, a background,and an animation effect to at least one of the first external object1811, the second external object 1812, and the third external object1813. For example, the electronic device 101 may apply a surprised lookto the first external object 1811, apply a body gesture of making aheart with fingers to the second external object 1812, or control thesize of the third external object 1813.

FIGS. 19A and 19B illustrate an operation in which an electronic devicegenerates an image including a plurality of 3D avatars according tovarious embodiments of the disclosure and FIG. 20 illustrates expressionattributes of a 3D avatar according to various embodiments of thedisclosure.

Referring to FIG. 19A, the electronic device 101 may select one or moreexternal objects corresponding to faces based on a 2D image including aplurality of external objects and generate 3D avatars corresponding tothe selected external objects. Specifically, the electronic device 101may obtain a 2D image 1910 including three human faces. The electronicdevice 101 may extract one or more external objects from the 2D image1910 and determine whether the extracted external objects correspond tofaces. The electronic device 101 may display identifiers (for example,dotted squares) indicating external objects 1911, 1912, and 1913corresponding to the extracted faces in the 2D image 1920. Theelectronic device 101 may sequentially generate 3D avatars for the firstexternal object 1911, the second external object 1912, and the thirdexternal object 1913 corresponding to faces. The electronic device 101may use one or more 3D avatars to generate a plurality of 3D avatarscorresponding to a plurality of external objects. The electronic device101 may provide one or more 3D avatars through the display device 160 inorder to select a 3D avatar corresponding to an external object anddetermine that the 3D avatar selected according to user inputcorresponds to the external object. In response to a selection of afirst external object 1931 by a user input received through the inputdevice 150 among the plurality of external objects, the electronicdevice 101 may display an identifier (for example, a circle) indicatingthe selected first external object 1931 in a 2D image 1930. Theelectronic device 101 may display one or more 3D avatars 1935 which maycorrespond to the selected first external object 1931. The one or more3D avatars 1935 may include an animal 3D set 19341 related to animalsand a woman set 19352 related to heroines according to a category. Onecategory may include expression attribute sets of characters associatedwith each other and the expression attribute set for each character mayinclude an expression attribute subset (for example, an expressionattribute set (eyes)) corresponding to a condition for each of elementsof the character (for example, a body, eyes, a nose, a mouth, hands, orfeet).

The electronic device 101 may select a first 3D avatar 1942corresponding to a first external object 1941 from one or more 3Davatars and display the selected first 3D avatar 1942 in a 2D image1940. The electronic device 101 may generate first 3D avatars reflectingfacial expressions corresponding to one or more conditions of the faceand the body gesture based on one or more of the attributes related tothe face and the body gesture of the first external object 1911.

Referring to FIG. 20 , one or more 3D avatars 1920 may includepredetermined expression attributes related to facial expressionaccording to predetermined circumstances. The electronic device 101 maydefine one or more circumstances and define expression attributesrelated to facial expressions of the 3D avatar according tocircumstances. The expression attributes of the 3D avatar may include ashape and a motion of eyes, a nose, or a mouth corresponding to the faceand also include a shape and a motion of a head, ears, arms, legs, or abelly corresponding to elements other than the face. For example, theelectronic device 101 may define a general circumstance 2011 and defineexpression attributes 2021 and 2031 for one or more avatars.

Referring to FIG. 19B, the electronic device 101 may reflect smilingattributes according to a smile of the first external object 1941 togenerate a first 3D avatar. In order to generate 3D avatarscorresponding to other external objects in accordance with a selectionof a first 3D avatar 1952 corresponding to the first external object1951 in the 2D image 1950, the electronic device 101 may recommend 3Davatars 1955 belonging to the same category as the first 3D avatar 1952.For example, when the first 3D avatar 1952 belongs to a category relatedto an animal, the electronic device 101 may display the 3D avatars 1955,which include an animal 3D set.

The electronic device 101 may select a second 3D avatar 1962corresponding to a second external object 1961 selected in the 2D image1960 and sequentially select a third 3D avatar 1972 corresponding to athird external object 1971 selected in the 2D image 1970. The electronicdevice 101 may generate an image 1980 including 3D avatars 1981, 1982,and 1983 generated by applying facial expression attributes selectedbased on the attributes related to faces of a plurality of externalobjects to a plurality of 3D avatars 1952, 1962, and 1972 selected inaccordance with the plurality of external objects 1951, 1961, and 1971.

According to various embodiments, when there are a plurality of externalobjects, the electronic device 101 may determine the 3D avatars 1955recommended and displayed for other selected external objects accordingto the facial expression attributes of the selected external object andthe selected avatar category. For example, when a first person issmiling and a second person is crying and when an external objectcorresponding to a third person is selected, expression characteristicsof the recommended 3D avatars 1955 may include a 3D avatar correspondingto the smile or the crying among characters belonging to the samecategory.

FIGS. 21A, 21B, 21C, 21D, and 21E illustrate an operation in which anelectronic device shares a 3D avatar with an electronic device of avideo call counterpart according to various embodiments of thedisclosure.

FIGS. 21A, 21B, 21C, 21D, and 21E, the electronic device 101 may providea video call function and generate a 3D avatar in accordance with anexternal object corresponding to a face among external objects displayedon a video call screen. The electronic device 101 may share the 3Davatar with a counterpart's electronic device making the video call.

Referring to FIG. 21A, the electronic device 101 may execute a videocall function, and when the video call is connected, may display a videocall screen 2101. The electronic device 101 may extract one or moreexternal objects 2110 and 2120 from the displayed video call screen 2101and determine whether the extracted external objects correspond tofaces. The electronic device 101 may sequentially generate 3D avatarscorresponding to the first external object 2110 and the second externalobject 2120.

Referring to FIG. 21B, the electronic device 101 may display one or more3D avatars 2130 in response to a selection of the second external object2120.

Referring to FIG. 21C, the electronic device 101 may determine that afirst 3D avatar 2131 selected according to user input corresponds to asecond external object 2120.

Referring to FIG. 21D, in response to a selection of the first externalobject 2110, the electronic device 101 may display one or more 3Davatars 2140 selected based on the first 3D avatar.

The electronic device 101 may determine that a second 3D avatar 2132selected from one or more 3D avatars 2140 corresponds to the firstexternal object 2110. According to an embodiment, in response to aselection of the first external object 2110, the electronic device 101may transmit one or more 3D avatars 2140 selected based on the first 3Davatar to the counterpart's electronic device. The counterpart'selectronic device may perform an operation of receiving the one or more3D avatars 2140 selected based on the first 3D avatar from theelectronic device 101, displaying the 3D avatars 2140 in a video callscreen 2210, and selecting one avatar (for example, the second 3D avatar2132) therefrom. The electronic device 101 may receive a signalcorresponding to the second 3D avatar 2132 selected by the counterpart'selectronic device.

According to an embodiment, based on the category or facial expressionattributes of the first 3D avatar 2131 selected in accordance with theselected second external object 2120, the electronic device 101 maydetermine and display 3D avatars 2130 in the same category or facialattributes in accordance with the first external object 2110 selectedthereafter.

Referring to FIG. 21E, the electronic device 101 may display and provide3D avatars 2111 and 2121 corresponding to external objects on the videocall screen.

FIG. 22 illustrates an operation in which an electronic device shares a3D avatar with an electronic device of a video call counterpartaccording to various embodiments of the disclosure.

Referring to FIG. 22 , when the electronic device 101 makes a video callwith a counterpart's electronic device, the electronic device 101 maydisplay an external object 2211 corresponding to a user and an externalobject 2212 corresponding to a counterpart on a video call screen 2210of the electronic device 101 and display an external object 2221corresponding to the counterpart and an external object 2222corresponding to the user on a video call screen 2220 of thecounterpart's electronic device. At this time, the counterpart'selectronic device may also perform an operation of selecting an externalobject or displaying and selecting 3D avatars corresponding thereto. Theelectronic device 101 may transmit an indicator displayed therefor and3D avatars to the counterpart's electronic device.

Referring to FIG. 22 , the electronic device 101 may generate 3D avatarscorresponding to the external object 2211 corresponding to the user andthe external object 2212 corresponding to the counterpart. Theelectronic device 101 may display generated 3D avatars 2231 and 2232 ona video call screen 2230 and transmit the 3D avatars 2231 and 2231 tothe counterpart's electronic device. The counterpart's electronic devicemay display received 3D avatars 2241 and 2242 on a video call screen2240. An electronic device (for example, the electronic device 101 ofFIG. 1 ) according to various embodiments may include a camera (forexample, the camera module 180 of FIG. 1 ); a display (for example, thedisplay device 160 of FIG. 1 ); and a processor (for example, theprocessor 120 of FIG. 1 ), wherein the processor 120 may obtain a firstimage for one or more external objects through the camera module 180,provide a 3D graphic object generated based on attributes related to anexternal object corresponding to a face among the one or more externalobjects included in the first image through the display device 160,generate a 3D avatar for the external object at least based on at leastone graphic attribute selected from a plurality of graphic attributeswhich can be applied to the 3D graphic object and the 3D graphic object,and generate a second image including at least one object reflecting apredetermined facial expression or motion using the 3D avatar. Accordingto an embodiment, the processor 120 may determine a 3D templateincluding at least one attribute corresponding to the external object,extract attributes related to the external object from the first image,and generate a 3D graphic object by applying the extracted attributes tothe at least one attribute corresponding to the 3D template. Accordingto an embodiment, the processor 120 may extract at least one element ofthe face from the first image and identify a shape of each element, acolor, the relative position between the elements, the relative sizeratio between the elements, or an attribute value of an accessory ofeach element. According to an embodiment, with respect to the attributesof the 3D template irrelevant to the extracted attributes, the processor120 may generate the 3D graphic object by applying predeterminedattributes to the 3D template. According to an embodiment, the processor120 may determine a 3D template different from the external objectcorresponding to the face. According to an embodiment, the object may bedetermined in accordance with a facial expression of the avatar, agesture of the avatar, a background, or an animation effect, and theprocessor 120 may generate at least one object reflecting apredetermined value of at least one of the facial expression of theavatar, the gesture of the avatar, the background, and the animationeffect using the 3D avatar. According to an embodiment, with respect toa first external object among the one or more external objects, theprocessor 120 may make at least one configuration corresponding to theface correspond to a configuration of the first external object.According to an embodiment, the processor 120 may generate graphicattributes, based on a first external object which satisfies apredetermined condition among the one or more external objects.According to an embodiment, the processor 120 may determine a 3Dtemplate corresponding to the first external object or a predetermined3D template according to a user input and apply attributes of the firstexternal object to the determined 3D template to generate the graphicattributes. According to an embodiment, the processor 120 may select anadditional object which does not correspond to the face from among theone or more external objects and add the selected additional object togenerate the 3D avatar. According to an embodiment, the processor 120may transmit the generated second image to an external electronicdevice. According to an embodiment, the first image may be a 2D imageand the second image may be a 2D still image or a 2D moving image.

An electronic device (for example, the electronic device 101 of FIG. 1 )according to various embodiments may include a camera (for example, thecamera module 180 of FIG. 1 ); and a processor (for example, theprocessor 120 of FIG. 1 ), wherein the processor 120 may obtain a firstimage for one or more external objects through the camera module 180,select a 3D avatar corresponding to an external object among one or more3D avatar, based on the external object corresponding to a face amongthe one or more external objects included in the first image, andgenerate a second image including an object generated using the 3Davatar reflecting a facial expression corresponding to the face of theexternal object. According to an embodiment, the electronic device mayfurther include a communication module (for example, the communicationmodule 190 of FIG. 1 ) and the processor 120 may receive the one or more3D avatars through the communication module 190. According to anembodiment, the processor 120 may reflect, in the 3D avatar, a firstexpression attribute selected based on the facial expressioncorresponding to the face of the external object among expressionattributes related to facial expressions of a predetermined facecorresponding to one or more circumstances. According to an embodiment,the expression attributes related to the facial expressions of thepredetermined face corresponding to the one or more circumstances may bedefined in accordance with eyes, a nose, or a mouth. According to anembodiment, the object may include a facial expression of an avatar, agesture of an avatar, a background, or an animation effect.

An electronic device (for example, the electronic device 101 of FIG. 1 )according to various embodiments may include a camera (for example, thecamera module 180 of FIG. 1 ); and a processor (for example, theprocessor 120 of FIG. 1 ), wherein the processor 120 may be configuredto obtain a first image for one or more external objects through thecamera module 180, identify whether there is an external objectcorresponding to a face in the one or more external objects included inthe first image, generate a 3D avatar, based on attributes related tothe external object when there is the external object corresponding tothe face, and block generating of a 3D avatar when there is no externalobject corresponding to the face. According to an embodiment, theelectronic device may further include a display (for example, thedisplay device 160 of FIG. 1 ) and the processor 120 may provideinformation on whether there is the external object corresponding to theface in the one or more external objects through the display device 160.

While the disclosure has been shown and described with reference tovarious embodiments thereof, it will be understood by those skilled inthe art that various changes in form and details may be made thereinwithout departing from the spirit and scope of the disclosure as definedby the appended claims and their equivalents.

What is claimed is:
 1. An electronic device comprising: a touchscreendisplay, and at least one processor configured to: display, via thetouchscreen display, an execution screen of a message application,wherein the execution screen of the message application includes aplurality of icons respectively related to a message to be transmittedto a counterpart, and a virtual keyboard including a plurality ofobjects for receiving a character, receive, on the execution screen ofthe message application, a first user input with respect to a first iconamong the plurality of icons, wherein the first icon is an iconconfigured to display a plurality of three-dimensional facial avatarcharacter on the execution screen of the message application, based onthe reception of the first user input, replace the plurality of objectsfor receiving the character with the plurality of three-dimensionalfacial avatar character, and display the plurality of three-dimensionalfacial avatar character on the execution screen of the messageapplication, receive, on the execution screen of the messageapplication, a second user input with respect to a firstthree-dimensional facial avatar character among the plurality ofthree-dimensional facial avatar character, based on the reception of thesecond user input, display, on the execution screen of the messageapplication, a plurality of graphic objects corresponding to the firstthree-dimensional facial avatar character, wherein the plurality ofgraphic objects includes a predetermined facial expression or a gesture,receive, on the execution screen of the message application, a thirduser input with respect to a first graphic object among the plurality ofgraphic objects corresponding to the first three-dimensional facialavatar character, based on the reception of the third user input,display, on the execution screen of the message application, a send iconconfigured to transmit the first graphic object to the counterpart and apreview with respect to the first graphic object, receive, on theexecution screen of the message application, a fourth user input withrespect to the send icon while the preview with respect to the firstgraphic object is displayed on the execution screen of the messageapplication, and based on the reception of the fourth user input,transmit the first graphic object to the counterpart, wherein thetransmitted first graphic object is displayed with a text messagetransmitted with the first graphic object to the counterpart.
 2. Theelectronic device of claim 1, wherein a format of the firstthree-dimensional avatar character is graphic interchange format (GIF).3. The electronic device of claim 1, wherein the first three-dimensionalavatar character is capable of being transmitted using a plurality ofapplications, and wherein the plurality of applications include amessage application, a social networking service (SNS) application, andan e-mail application.
 4. The electronic device of claim 1, wherein theat least one processor is configured to identify a facial expression ofthe user based on a at least one image obtained via a at least onecamera.
 5. The electronic device of claim 1, wherein the at least oneprocessor is configured to, based on at least one graphic attribute fromamong a plurality of graphic attributes, generate a plurality ofthree-dimensional templates for generating the first three-dimensionalavatar character.